<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateFhBannerTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('fh_banner', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name')->default('')->comment('banner名称');
            $table->string('title')->nullable()->comment('banner标题');
            $table->string('desc')->nullable()->comment('banner简介');
            $table->string('url')->default('javascript:;')->nullable()->comment('跳转地址');
            $table->string('img')->default('')->comment('banner图');
            $table->smallInteger('sort')->comment('排序');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('fh_banner');
    }
}
